import { Router } from 'express';
import bannerController from '../controllers/bannerController';

const router = Router();

// 轮播图管理路由（管理后台）
router.post('/', bannerController.createBanner);
router.get('/', bannerController.getBannerList);
router.get('/stats', bannerController.getBannerStats);
router.get('/:id', bannerController.getBannerById);
router.put('/:id', bannerController.updateBanner);
router.delete('/:id', bannerController.deleteBanner);
router.post('/batch-delete', bannerController.deleteBanners);
router.patch('/:id/status', bannerController.updateBannerStatus);

export default router;